package com.sinochem.yunlian.ship.base.biz;

import com.sinochem.yunlian.ship.base.entity.BsPortalIndex;
import com.sinochem.yunlian.ship.base.mapper.BsPortalIndexMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by jayway on 2017/12/19.
 */
@Component
public class BsProtalIndexBiz {
    @Autowired
    private BsPortalIndexMapper portalIndexMapper;

    public BsPortalIndex getLastInfo(){
        return portalIndexMapper.getNewest();
    }
    public void insert(BsPortalIndex index){
        portalIndexMapper.insert(index);
    }
}
